package tum0r.model;

import java.util.LinkedHashMap;

/**
 * 工程: Security<br>
 * 包: tum0r.model<br>
 * 创建者: tum0r<br>
 * 创建时间: 2021/3/25 17:41<br>
 * <br>
 */
public class ProblemInfoItem {
    public String FunctionName;
    public LinkedHashMap<String, String> Parameters = new LinkedHashMap<>();
    public String Note;

    public ProblemInfoItem(String functionName, String note) {
        FunctionName = functionName;
        Note = note == null ? "" : note;
    }

    public void addParameter(String name, String type) {
        if (!Parameters.containsKey(name)) {
            Parameters.put(name, type);
        }
    }
}
